/* 首页特定样式 */

/* 英雄区域 */
.hero {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    animation: slideInRight 1s ease-out;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(90deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}



/* 特性部分 */
.features {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}



.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    margin-top: var(--spacing-md);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* 模板预览 */
.templates-preview {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-secondary);
}

.templates-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.template-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}



.template-info {
    padding: var(--spacing-lg);
    text-align: center;
}

.template-info h3 {
    margin-bottom: var(--spacing-sm);
}

.template-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
}

.view-more {
    text-align: center;
}

/* 使用步骤 */
.how-it-works {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.2);
}

.step-content {
    text-align: center;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 价格预览 */
.pricing-preview {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-secondary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.pricing-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header {
    padding: var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    display: block;
    margin: 0 var(--spacing-lg) var(--spacing-lg);
}

/* 用户评价 */
.testimonials {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-color);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.testimonial-card {
    background-color: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 行动召唤 */
.cta {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    margin-bottom: var(--spacing-sm);
    font-size: 2.25rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .templates-slider,
    .pricing-cards,
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xl);
    }
    
    .steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .features-grid,
    .templates-slider,
    .pricing-cards,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}